package com.ad_hccm.service.impl.AllergyHistory;

import com.ad_hccm.dao.AllergyHistory.AllergyHistoryDao;
import com.ad_hccm.domain.AllergyHistory.AllergyHistory;
import com.ad_hccm.service.AllergyHistory.AllergyHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * TODO 过敏史ServiceImpl
 */
@Service
public class AllergyHistoryServiceImpl implements AllergyHistoryService {
    @Autowired
    private AllergyHistoryDao allergyHistoryDao;

    @Override
    public boolean save(AllergyHistory allergyHistory) {
        return allergyHistoryDao.save(allergyHistory);
    }

    @Override
    public boolean update(AllergyHistory allergyHistory) {
        return allergyHistoryDao.update(allergyHistory);
    }

    @Override
    public AllergyHistory getById(String id) {
        return allergyHistoryDao.getById(id);
    }

    @Override
    public List<AllergyHistory> getAll() {
        return allergyHistoryDao.getAll();
    }
}
